package com.milloc.db.bo;

import com.milloc.db.entity.ParameterEntity;
import com.milloc.db.entity.ScriptEntity;

import java.util.List;
import java.util.Map;

/**
 * @author gongdeming
 * @create 2019-08-30
 */
public abstract class ScriptBO {
    public abstract boolean supports(ScriptEntity scriptEntity);

    public abstract List<ParameterEntity> loadParameter(ScriptEntity scriptEntity);

    public abstract Object run(ScriptEntity scriptEntity, Map<String, Object> params);
}
